package com.py.pythink.controller;

import com.py.pythink.service.intf.BrowseService;
import com.py.pythink.service.intf.CollectService;
import com.py.pythink.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jls
 * @date 2021/7/7 21:05
 */
@RestController
@CrossOrigin
@RequestMapping("/api/collect/")
public class CollectController {
    @Autowired
    private CollectService service;

    @PostMapping("queryall.do")
    public R queryAll(String token){
        return service.queryall(token);
    }

    @PostMapping("delete.do")
    public R delete(String token,int fid){
        return service.delete(token,fid);
    }
}
